#准备工作
is_163=`sed -n '/mirrors.163/p' /etc/apt/sources.list | wc -l`
if [ $is_163 -eq 0 ]; then
  echo "更换apt-get源 163.mirror"
  sleep 2
  cp /etc/apt/sources.list /etc/apt/sources.list.orig
  cat settings/163.mirror > /etc/apt/sources.list
  echo "apt-get更新升级"
  apt-get update
  apt-get upgrade
fi

echo "初始化系统环境"
sleep 2
apt-get -y install git vim \
build-essential libpcre3 libpcre3-dev \
openssl libssl-dev libxml2 libxml2-dev \
libcurl4-openssl-dev pkg-config libjpeg-dev \
libpng-dev libfreetype6-dev libmcrypt-dev nfs-common \
autoconf psmisc
